package com.neusoft.neuiotms.dcom.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;

import com.neusoft.bizcore.web.jpa.model.AbstractModel;
import com.neusoft.bizcore.web.jpa.model.Comment;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "neuiot_month_service_summary")
@org.hibernate.annotations.Table(appliesTo = "neuiot_month_service_summary", comment = "月报服务工作量总结表")
public class MonthServiceSummary extends AbstractModel {

    private static final long serialVersionUID = 1L;

    /** 服务类型名称 */
    @Length(max = 255, message = "服务类型名称不能超过{max}位")
    @Column(length = 255, nullable = true)
    @Comment("varchar(255) NULL DEFAULT NULL COMMENT '服务类型名称'")
    private String serviceTypeName;

    /** 服务类型编码 */
    @Length(max = 255, message = "服务类型编码不能超过{max}位")
    @Column(length = 255, nullable = true)
    @Comment("varchar(255) NULL DEFAULT NULL COMMENT '服务类型编码'")
    private String serviceTypeCode;

    /** 服务属性名称 */
    @Length(max = 255, message = "服务属性名称不能超过{max}位")
    @Column(length = 255, nullable = true)
    @Comment("varchar(255) NULL DEFAULT NULL COMMENT '服务属性名称'")
    private String serviceAttributesName;

    /** 服务属性编码 */
    @Length(max = 255, message = "服务属性编码不能超过{max}位")
    @Column(length = 255, nullable = true)
    @Comment("varchar(255) NULL DEFAULT NULL COMMENT '服务属性编码'")
    private String serviceAttributesCode;

    /** 总次数 */
    @Column(length = 8, nullable = true)
    @Comment("int(8) NULL DEFAULT NULL COMMENT '总次数'")
    private Integer totalNumber;

    /** 总耗时(分钟) */
    @Column(length = 8, nullable = true)
    @Comment("int(8) NULL DEFAULT NULL COMMENT '总耗时(分钟)'")
    private Integer totalTime;

    /** 关联月报 */
    @ManyToOne
    private MonthWeekly month;
}
